/*
 * @Description: 
 * @version: 
 * @Author: XiaoQiYan
 * @Date: 2021-07-30 13:31:21
 * @LastEditors: XiaoQiYan
 * @LastEditTime: 2021-08-24 10:34:38
 */
public class StringBuilderTest {
    public static void main(String[] args) {
        StringBuilder s = new StringBuilder("I");
        s.append(" java");
        s.insert(1," love");
        String t = s.toString();
        System.out.println(t);
        s.reverse();
        String x= s.toString();
        System.out.println(x);
        s.delete(1,4);
        System.out.println(s.toString());
    }
}
